<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Datatable extends CI_Controller {
 function __construct()
 {
   parent::__construct();
   $this->load->model('muser');
   $this->load->library('my_datatables');
   
 }
 function index(){
 	$this->load->view('post');
 }
 function danhsach(){
 	$this->my_datatables
 		->select('WorkDay_ID, WorkDay.Staff_ID,Date,StartTime,EndTime')
		->from('WorkDay')
		->join('Staff','Staff.Staff_ID=WorkDay.Staff_ID')
		->select('FullName');
	echo $this->my_datatables->generate();		
	
 }
}
